@isTest
private class Test_MobileAppHomepageController {

    public static void createData() 
    {
        List<Transaction_Types__c> insertList = new List<Transaction_Types__c>();
        
        for(integer i = 0; i < 2; i++)
        {
            Transaction_Types__c newTransacrionType = new Transaction_Types__c();
            newTransacrionType.Application_Package__c = 'Service Letter';
            newTransacrionType.Application_Type__c = 'Test'  + i.format();
            newTransacrionType.isMobile__c = True;
            newTransacrionType.Active__c = True;
            insertList.add(newTransacrionType);
        }
        
        insert insertList;
    }

    // Methods for testing
    public static testMethod void MobileAppHomepageControllerTest() {
        createData();
        
        PageReference pageRef = Page.MobileAppHomePage;   
        Test.setCurrentPage(pageRef);
        
        MobileAppHomepageController  controller = new MobileAppHomepageController ();
        
        controller.forwardToCustomAuthPage();
   }

}